<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	
	
	xmlns:composite="http://xmlns.jcp.org/jsf/composite">

<composite:interface name="pubIcons"
	shortDescription="displays the Icons available for a publiations">
	<composite:attribute name="pubId" required="true" type="java.lang.Long" />
	<composite:attribute name="iconSize" default="small" />
</composite:interface>

<composite:implementation>
	#{pubController.init(cc.attrs.pubId)}

	<div class="pubIcons" id="pubIcons_#{pubController.id}">
		<h:graphicImage value="/resources/media/icons/hotness-16.png"
			title="Indicates the interest in this publication." />
		<ui:repeat var="thread" value="#{pubController.pubThreads}">
			<h:outputLink value="thread.jsf?tid=#{thread.id}">
				<h:graphicImage value="/resources/media/icons/thread-16.png"
					title="Part of the #{thread.name} thread." />
			</h:outputLink>
		</ui:repeat>
	</div>

</composite:implementation>
</html>